//
//  SYCollectionTopView.h
//  SanYiTeaching
//
//  Created by 郑浩然 on 2019/4/11.
//  Copyright © 2019年 李文强. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, SYCollectionTopType) {
    SYCollectionTopTypeAdd,//添加
    SYCollectionTopTypeTab,//表
    SYCollectionTopTypeCollection, //格格
    SYCollectionTopTypeUpload, //上传
    SYCollectionTopTypePaiZhao, //拍照
    SYCollectionTopTypeZhaoPian, //照片
    SYCollectionTopTypeLiuLan, //浏览
    SYCollectionTopTypeLuWeiKe, //录制微课
    SYCollectionTopTypeHuaBan //画板

};

typedef void(^SYCollectionTopBlock)(SYCollectionTopType typede);

typedef void(^SYCollectionSearchBlock)(NSString *keyStr, NSString *titleStr);

@protocol SYCollectionTopViewDelegate <NSObject>

- (void)selectType:(SYCollectionTopType)type;

@end


@interface SYCollectionTopView : UIView

@property (strong, nonatomic) SYFunctoinModel *function;

@property (copy, nonatomic) SYCollectionTopBlock block;

@property (weak, nonatomic) id <SYCollectionTopViewDelegate> delegate;

@property (assign, nonatomic) BOOL isChar;//群聊辅导

@property (copy, nonatomic) NSString *isfrom;//群聊发送资源

@property (copy, nonatomic) SYCollectionSearchBlock searchBlock;
@property (copy ,nonatomic) void(^kaiQiLuPingBlock)(void);
@end
